package com.hxzy.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

//SpringBoot启动类或引导类
@SpringBootApplication  //运行Spring项目的注解
//自己指定组件扫描的位置  扫描注解让有注解的地方生效
//@ComponentScan({"service","com.hxzy.boot"})
public class Web08Boot01Application {

    public static void main(String[] args) {
        SpringApplication.run(Web08Boot01Application.class, args);
    }

}
